package com.kly.user.db.dao;
import com.fqgj.common.base.BaseMapper;
import com.kly.user.db.entity.UserMsgSendTotalEntity;

import java.util.List;

/**
* User: linqu
* Date: 2023-09-25
* Time: 10:01:01.908
*/

public interface UserMsgSendTotalDao  extends BaseMapper<UserMsgSendTotalEntity> {

    List<UserMsgSendTotalEntity> queryByUserCode(String fromUserCode, String toUserCode);

    UserMsgSendTotalEntity getUserMsgSendTotal(String fromUserCode, String toUserCode);


    /**
     * 读取用户发送消息数
     * @param chatterUserCode
     * @param fromUserCode
     * @param toUserCode
     * @return
     */
    UserMsgSendTotalEntity getUserSendMsgNum(String chatterUserCode, String fromUserCode, String toUserCode);

    /**
     * 用户深度会话数量
     * @param fromUserCode
     * @return
     */
   int getUserSendMsgCount(String fromUserCode);

    /**
     * 获取在线用户会话数据
     */
   List<UserMsgSendTotalEntity> listOnlineUserChats(String chatterUserCode, String modelUserCode);

}